package com.xiangban.model.res;
public enum ApiResultCode {
    // 操作成功标识
    SUCCESS(200, "Success"),
    // 系统异常标识
    SYS_ERROR(500, "当前网络不稳定，请稍后重试"),

    //----------------------------------------
    // 通用异常
    // 区间：10001-10050
    //----------------------------------------
    COMMON_PARAM_NULL(10001, "必要参数[%s]为空"),
    COMMON_PARAM_INVALID(10002, "%s无效"),
    CONTAINS_ILLEGAL_CHARACTERS(10003, "%s含有非法字符"),
    DATA_NOT_EXIST(10004, "%s不存在"),
    NO_PERMISSION_OPERATE(10005, "没有%s的操作权限"),
    CAN_NOT_BE_OPERATE(10006, "%s不能%s"),
    FIELD_NOT_ALLOWED_EMPTY(10010, "%s不能为空"),
    FIELD_VALUE_MUST_LARGE_THAN(10011, "%s必须大于%s"),
    FIELD_VALUE_MUST_LESS_THAN(10012, "%s必须小于%s"),
    DATA_EXIST(10013, "%s已存在"),
    FIELD_NOT_EMAIL(10013, "%s格式错误"),
    FIELD_NOT_MOBILE(10014, "%s格式错误"),
    FIELD_NOT_ID_NUM(10015, "%s格式错误"),
    FIELD_NOT_DATE(10016, "%s格式错误"),
    FIELD_LENGTH_MUST_LESS(10017, "%s必须小于%d"),
    FIELD_LENGTH_MUST_MORE(10018, "%s必须大于%d"),
    FIELD_LENGTH_MUST_BETWEEN(10019, "%s长度必须大于%d和小于%d"),
    FILED_NOT_IN_ENUM_VALUES(10020, "不支持的%s"),
    FIELD_NOT_BOTH_BE_EMPTY(10021, "%s不能同时为空"),
    MUST_BE_INTEGER_MULTIPLE(10022, "%s必须是%s的整数倍"),
    UPLOAD_PICTURES_ERROR(10023, "上传图片出错，%s"),

    FIELD_VALUE_MUST_GE_THAN(10023, "%s必须大于等于%s"),
    FIELD_VALUE_MUST_LE_THAN(10024, "%s必须小于等于%s"),
    FIELD_VALUE_MUST_DONE(10025, "%s还未%s"),

    TIME_MUST_LARGE_THAN(10030, "%s必须晚于%s"),
    TIME_VALUE_MUST_LESS_THAN(10031, "%s必须早于%s"),
    INVALID_CHANGE_STATUS(10032, "%s更新状态非法"),
    FIELD_DIGITAL(10033, "获取商品信息出错"),
    LENGTH_MUST_LESS(10034, "%s必须小于%s"),
    LENGTH_MUST_MORE(10035, "%s必须大于%s"),
    NO_DATA_FOUND(10036, "暂无数据"),
    COMMON_MESSAGE(10045, "%s"),
    IS_DEFAULT_ADDRESS(10046, "%s已设为默认值"),


    //----------------------------------------
    // api调用异常
    // 区间：10051-10099
    //----------------------------------------
    FLAG_NO_VOUCHER(10051, "未携带有效凭证"),
    FLAG_FAIL_VOUCHER(10052, "凭证认证失败"),
    FLAG_NO_ACCESS_ID(10053, "ACCESS_ID不能为空"),
    FLAG_NO_ACCESS_SECRET(10054, "ACCESS_SECRET不能为空"),


    //----------------------------------------
    //
    // 区间：20001-20050
    //----------------------------------------
    NOT_PERMISSION(20000,"暂无权限"),
    NOT_TOKEN(20001,"未登录"),
    FAILED_TOKEN(20002,"身份认证失败"),
    FAILED_LOGIN(20003,"账号或密码不正确"),
    NULL_PHONE(20004,"手机号不能为空"),
    FAILED_VERIFICATION(20005,"验证码过期或者不正确"),
    FAILED_ACCOUNT(20006,"账号不存在"),
    NULL_ACCOUNT(20007,"账号不能为空"),
    NULL_LOGIN_TYPE(20008,"类型不匹配"),
    NOT_USER_ROLE_LEGAL(20009,"用户权限不合法"),
    EXIST_ACCOUNT(20010,"账号已经存在"),
    EXIST_PHONE(20011,"手机号已经存在"),
    PARAMETER_DEFICIENCY(20012,"缺少必填参数"),
    PARAMETER_EXCEPTION(20013,"参数填写错误"),
    VERIFICATION_CODE(20014,"验证码获取失败"),
    NULL_VERIFICATION(20015,"验证码不能为空"),
    NULL_NICKNAME(20016,"昵称不能为空"),
    NULL_PASSWORD(20017,"密码不能为空"),
    NULL_CERTIFICATE(20018,"凭证不能为空"),
    ERROR_CERTIFICATE(20019,"凭证不正确或过期"),
    NULL_SESSION_KEY(20020,"SESSION_KEY不能为空"),
    NULL_USER_INFO(20021,"用户信息解析失败"),
    NULL_TOKEN(20022,"未携带token"),
    ACCESS_ID_NULL(20023,"ACCESS_ID不能为空"),
    PAY_TYPE_NULL(20024,"PAY_TYPE不能为空"),
    PRICE_NULL(20025,"PRICE不能为空"),
    WATER_NUMBER_NULL(20026,"流水号不能为空"),
    HAS_REACHED_ITS_LIMIT(20027,"已达上限"),//绑定人数已达上限
    COME_AGAIN_TOMORROW(20028,"当日11点后请预约明日服务"),
    NOT_ACCOMPANY(20029,"您还未成为陪诊"),
    UNDER_REVIEW(20030,"正在审核中"),
    AUDIT_FAILURE(20031,"审核失败,请重新审核"),
    FREEZE(20032,"您的账号已冻结"),
    ASSIGN(20033,"此订单已指派给他人"),
    ERROR_START_TIME(20034,"当前出行时间无法预约，换一天试试"),
   PLEASE_DO_NOT_REPEAT(20035,"请勿重复支付"),
    NOT_PAY_ORDER(20036,"此订单已不可支付"),
    NO_ERRO(20037,"未知错误"),
    ALREADY_EXIST(20038,"您已成为陪诊"),
    ALREADY_BINDING(20039,"不可重复邀请"),
    ALREADY_ORDER(20040,"不可重复接单"),
    LOCATION_NOT_SCOPE(20041,"不在打卡地点范围"),
    PLEASE_DO_NOT_SING(20042,"请勿重复打卡"),
    NOT_ORDER(20043,"此单不存在"),
    EXAMINE_TIME(20044,"请检查出发时间"),
    NO_REFUND(20045,"上门两小时内不预退款"),
    NO_REPETITION(20046,"请勿重复退款"),
    NO_PAY(20047,"此单未支付"),
    WEIXIN_REFUND_ERROR(20048,"微信退款失败"),
    NOT_FRIEND(20049,"您还未邀请好友,快去邀请朋友吧"),
    ONE_TIME(20050,"下单频繁,歇一歇吧"),
    ID_CARD_AND_NAME_INCONSISTENT(20051,"身份证和姓名不一致"),
    NOT_SUFFICIENT_FUNDS(20070,"余额不足"),
    DUPLICATE_ORDERNO_COMMENT(20071,"您已评价过了~"),
    DUPLICATECLAIM(20072,"请勿重复提交"),
    NOT_MEMBER(20073,"您还未成为相伴商城会员"),
    USER_REFUND(20074,"用户已退款"),
    CAN_NOT_CANCEL_ORDER(20075,"此订单不可取消"),
    HOSPITAL_NOT(20076,"医院不存在"),
    NOT_FIGURE(20077,"请输入数字!"),
    ASTRICT(20078,"单次提现限额200"),
    ERROR_RELATION(20079,"人员重复")


    ;
    public Integer code;
    public String message;

    public String getCodeS() {
        return codeS;
    }

    public String codeS;

    ApiResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ApiResultCode(String codeS, String message) {
        this.codeS = codeS;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
